<?php
namespace app\admin\model;
use app\admin\BaseModel;
use think\model\concern\SoftDelete;

class Category extends BaseModel
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    public static function getCateList()
    {
        $cate_list=Category::where('delete_time','=',null)->field(true)->select()->toArray();
        return $cate_list;
    }
    public static function cateEditList()
    {
        $list=self::field(true)->select();
        return $list;
    }
}